#define TYPE_VOID 0
#define VAR 1
#define TAB_AC_CST 2
#define FUNC_SS_PARAM 3 
#define FUNC_AC_PARAM 4
#define TYPE_INT 5
#define TYPE_FLOAT 6


#define GLOBAL 10
#define LOCAL 11
#define FONCTION 12


#ifndef TAB_SYMBOLE
#define TAB_SYMBOLE


#include "declarator_list.h"



struct table_symbole{
  struct symb *symb[255];
  int nb_symb;
  struct table_symbole* parent;
  int offset_min;
  int portee;
};

struct symb{
  struct declarator* decl;
  int offset;
};



struct table_symbole* tab_symb_vide(struct table_symbole *, int);
void ajouter_var(struct table_symbole*, struct declarator*);
void ajouter_func(struct table_symbole*, struct declarator*);
int get_offset(struct table_symbole*, char *);
int get_type(struct table_symbole*, char *);
#endif
